package com.ndp.fb.model.fbagent.result.entrustaccount;

import com.restfb.Facebook;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * Created by 15129 on 2015/8/17.
 */
@Setter
@Getter
@NoArgsConstructor
public class ReachFrequencySpec {

    /**
     * {
     "rf_spec": {
         "min_reach_limits": {
             "US": 1000000,
             "CA": 1000000,
         },
         "countries": [
             "US",
             "CA",
         ],
         "min_campaign_duration": {
             "US": 3,
             "CA": 3,
         },
         "max_campaign_duration": {
             "US": 30,
             "CA": 30,
         },
         "max_days_to_finish": {
             "US": 56,
             "CA": 56,
         }
         }
     }
     */

    @Facebook("countries")
    private List<String> countries;

    @Facebook("min_campaign_duration")
    private Object minCampaignDuration;     //在每个支持的国家至少持续时间（天）

    @Facebook("max_campaign_duration")
    private Object maxCampaignDuration;

    @Facebook("max_days_to_finish")
    private Object maxDaysToFinish;         //对应每个支持的国家，提前多少天能完成预测,

    @Facebook("min_reach_limits")
    private Object minReachLimits;          //每一个支持国家的最低限度（用户数量），用户定位

}
